/**
 * System configuration for Angular samples
 * Adjust as necessary for your application needs.
 */
(function (global) {
  System.config({
    paths: {
      // paths serve as alias
      'npm:': ngjsRoot + "/"
    },
    // map tells the System loader where to look for things
    map: {
      'resultSum':						ngappRoot + '/irmp-ledger-check/dist/resultSum',
//      'import':						ngappRoot + '/irmp-ledger-check/dist/import',
//      'export':						ngappRoot + '/irmp-ledger-check/dist/export',
      'iisp-ts-common':				'npm:iisp-ts-common',
      'angular-tree-component':    'npm:angular-tree-component',
      //'ng2-smart-table':			'npm:ng2-smart-table',
      //'ng2-completer':				'npm:ng2-completer',
      'ng2-file-upload':			'npm:ng2-file-upload',
      'ngx-pagination': 			'npm:ngx-pagination',
      'lodash':                     'npm:lodash',
      //'traceur':					'npm:traceur/dist/commonjs/traceur.js',
		'@angular/core': 				'npm:@angular/core/bundles/core.umd.js',
		'@angular/common': 			'npm:@angular/common/bundles/common.umd.js',
		'@angular/compiler': 			'npm:@angular/compiler/bundles/compiler.umd.js',
		'@angular/platform-browser': 	'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
		'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
		'@angular/http': 				'npm:@angular/http/bundles/http.umd.js',
		'@angular/router': 			'npm:@angular/router/bundles/router.umd.js',
		'@angular/forms': 			'npm:@angular/forms/bundles/forms.umd.js',
		'@angular/animations': 		'npm:@angular/animations/bundles/animations.umd.min.js',
		'@angular/animations/browser':'npm:@angular/animations/bundles/animations-browser.umd.js',
		'@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
		
		 // other libraries
		'primeng': 'npm:primeng',
		'@progress/kendo-date-math':		'npm:@progress/kendo-date-math',
		'@progress/kendo-angular-intl':		'npm:@progress/kendo-angular-intl',
		'@progress/kendo-angular-l10n':		'npm:@progress/kendo-angular-l10n',
		'@progress/kendo-angular-dialog':	'npm:@progress/kendo-angular-dialog',
		'@progress/kendo-angular-popup':	'npm:@progress/kendo-angular-popup',
		'@progress/kendo-popup-common':		"npm:@progress/kendo-popup-common",
		'@progress/kendo-angular-dateinputs':"npm:@progress/kendo-angular-dateinputs",
		'rxjs':                    			'npm:rxjs',
		'angular-in-memory-web-api': 		'npm:angular-in-memory-web-api/index.js'
   },
    // packages tells the System loader how to load when no filename and/or no extension
    packages: {
      'resultSum'				: { main: 'main.js', defaultExtension: 'js' },
//      'import'					: { main: 'main.js', defaultExtension: 'js' },
//      'export'					: { main: 'main.js', defaultExtension: 'js' },
      "iisp-ts-common"			: { main: 'dist/index.js', defaultExtension: 'js'},
      'angular-tree-component'	: { main: 'dist/angular-tree-component.js', defaultExtension: 'js' },
		'primeng' 				: { main: 'primeng.js', defaultExtension: 'js' },
		'@progress/kendo-angular-popup'	: { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'@progress/kendo-popup-common'	: { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'@progress/kendo-angular-l10n'	: { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'@progress/kendo-angular-dateinputs': { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'@progress/kendo-date-math'	: { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'@progress/kendo-angular-intl'	: { main: 'dist/npm/main.js', defaultExtension: 'js' },
		'primeng' 				: { main: 'primeng.js', defaultExtension: 'js' },
      //'ng2-smart-table'   	: { main: 'build/ng2-smart-table.js' },
      //'ng2-completer'			: { main: 'ng2-completer.umd.js', defaultExtension: 'js' },
      'ng2-file-upload'			: { main: 'index.js',  defaultExtension: 'js' },
      "ngx-pagination"			: { main: 'dist/ngx-pagination.js', defaultExtension: 'js' },
      'lodash'                 	: { main: 'lodash.js', defaultExtension: 'js' },
      'rxjs'					: { defaultExtension: 'js'}
    }
  });
})(this);
